package com.hdhere.application.Repository.media.impl;

import com.hdhere.application.Repository.BaseRepository;
import com.hdhere.application.Repository.media.VideoRepositoryCus;
import com.hdhere.domain.media.QVideo;

/*******************************************************************************************
 * 类描述：  
 *
 * @author: dustin
 * @date: 2019-03-09 09:12
 * @Description:
 * @version 1.0
 *
 *
 * Version    Date       ModifiedBy                 Content  
 * -------- ---------    ----------         ------------------------  
 * 1.0      2019/3/9       dustin                               
 *******************************************************************************************
 */
public class VideoRepositoryImpl extends BaseRepository implements VideoRepositoryCus {

    @Override
    public Long updatePostState(byte[] id, short postState) {
        QVideo video = QVideo.video;
        return
        queryFactory.update(video).where(video.id.eq(id))
                .set(video.postState, postState)
                .execute();
    }
}
